package com.mui.manager
{
	import com.gengine.global.*;
	import com.greensock.*;
	import com.greensock.easing.*;
	import com.mui.events.*;
	
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	
	public class DragManager extends Object
	{
		private var dragLayer:DisplayObjectContainer;

		public function DragManager(container:DisplayObjectContainer)
		{
			if (_instance != null)
			{
				throw new Error(" DragManager 单例 ");
			}
			this.dragLayer = container;
			_instance = this;
		}
		
		public static function init(container:DisplayObjectContainer) : void
		{
			if (_instance == null)
			{
				_instance = new DragManager(container);
			}
		}
		
		private static var _instance:DragManager;
		public static function get instance() : DragManager
		{
			if (!_instance)
			{
				throw new Error("DragManager 尚未初始化");
			}
			return _instance;
		}
	}
}